{% extends "halloffame/base.html" %}

{% comment %}
<!--
  Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/>
  Created on 2010-05-11.
  $Id$
-->
{% endcomment %}

{#________________________________________________________________________________________________#}

{% block html_title %} {{ inductee|escape }} :: Hall of Fame :: {{ group|escape }} {% endblock %}

{#________________________________________________________________________________________________#}

{% block sidebar %}

  <!-- photo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

  {% if inductee.photo_type and inductee.photo_data %}
    <div class="section">
      <img class="s-photo"
           src="{% url friday.view_inductee_photo group_uid=inductee.group.uid inductee_uid=inductee.uid %}"
           alt="Photo of {{ inductee|escape }}"/>
    </div>
  {% endif %}

  <!-- administration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

  {% if is_webmaster_ %}
    <div class="section">
      <h2>Administrate:</h2>
      <ul>
        <li>
          <a href="{% url friday.edit_inductee group_uid=inductee.group.uid inductee_uid=inductee.uid %}">
            Edit inductee information
          </a>
        </li>
        <li>
          <a href="{% url friday.change_inductee_photo group_uid=inductee.group.uid inductee_uid=inductee.uid %}">
            Change photo of inductee
          </a>
        </li>
      </ul>
    </div>
  {% endif %}

{% endblock %}

{#________________________________________________________________________________________________#}

{% block content %}

  <div class="section">
    <h1>
      {{ inductee.name|escape }}
      {% if inductee.aka %}
        aka. {{ inductee.aka|escape }}
      {% endif %}
    </h1>
    <h5>{{ inductee.summary|default:""|escape }}</h5>
  </div>

  <div class="section">
    <h2>Biography:</h2>
    {{ inductee.biography|escape|linebreaks }}
  </div>

  <div class="section">
    <div class="aux right">
      <img class="icon" src="{{ static_ }}/images/award.png" alt="Award"/>
      Inducted on {{ inductee.induct_date|date:"d N Y" }}
      &bull;
      <a href="{% url friday.view_profile username=inductee.user.username %}">
        Profile of {{ inductee.user|escape }}
      </a>
    </div>
    <div class="clear"></div>
  </div>

{% endblock %}



